Skip to main content

🚀 Splash Screen – React Native

A customizable Splash Screen built with React Native, Animated API.
This component provides a smooth entry animation and can be extended to navigate to any screen.


📸 Preview

Screenshot


📂 Folder Structure

project-root/ │ ├── components/ │ └── Splash.js │ ├── App.js └── package.json


✅ Prerequisites

Make sure you have these dependencies installed:

npm install react
npm install react-native

🔗 Usage

Update your Splash.js with below code:

import React, { useEffect } from 'react';
import { View, StyleSheet, Text } from 'react-native';

export default function Splash() {

useEffect(() => {
const timer = setTimeout(() => {
// move to other screen
}, 3000);
return () => clearTimeout(timer);
}, []);

return (
<View style={styles.container1}>
<View
style={styles.logoContainer}>
<Text style={styles.title}>SPLASH</Text>
<View style={styles.subtitleContainer}>
<Text style={styles.subtitle}>YOUR SPLASH FREE SLOGAN</Text>
</View>
</View>
</View>
);
};

const styles = StyleSheet.create({
container1: {
flex: 1,
backgroundColor: '#256',
justifyContent: "center",
alignItems: "center",
},
logoContainer: {
alignItems: 'center',
},
title: {
fontSize: 48,
fontWeight: 'bold',
color: 'orange',
letterSpacing: 5,
textShadowOffset: { width: 0, height: 0 },
textShadowRadius: 12,
},
subtitleContainer: {
flexDirection: 'row',
alignItems: 'center',
},
subtitle: {
fontSize: 18,
color: 'orange',
marginHorizontal: 10,
textShadowOffset: { width: 0, height: 0 },
textShadowRadius: 8,
},
});

📝 Notes

  • Replace splash.js with above code.
  • Adjust duration and setTimeout for timing.

✨ Done! Your app now has a beautiful splash screen with animation 🎉